home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Precision Software Appli…tions Silver Collection 4
/
Precision Software Applications Silver Collection Volume 4 (1993).iso
/
drivers
/
pro50.arj
/
INSTALL.BAT
next >
Wrap
DOS Batch File
|
1992-12-01
|
6KB
|
147 lines
echo off
cls
if ()==(%1) goto NO_ARG
if (net)==(%2) goto NET
if (NET)==(%2) goto NET
if not exist %1\SYSTEM\SETUP.INF goto BADDIR
goto DO_IT
:NET
if not exist %1\WIN.COM goto BADDIR
goto DO_IT
:NO_ARG
cls
echo ┌────────────────────────────────┐
echo │** MACH32 Windows 3.1 Drivers **│
echo │************ Build 50 **********│
echo └────────────────────────────────┘
echo
echo This batch file needs to know where your Windows
echo directory is located in order to properly install
echo the drivers.
echo
echo ┌┬────────────────────────────────────┬┐
echo ││ Usage: INSTALL [Windows Directory] ││
echo └┴────────────────────────────────────┴┘
echo Example: INSTALL C:\WINDOWS
goto DONE
:BADDIR
cls
echo ┌────────────────────────────────┐
echo │** MACH32 Windows 3.1 Drivers **│
echo │************ Build 50 **********│
echo └────────────────────────────────┘
echo
echo ERROR: INVALID PATH "%1"
echo
echo The path you specified in either incorrect or does
echo not exist. Please check the path to your Windows
echo directory and try again. If you continue to have
echo difficulty, please call ATI Customer Support for
echo assistance.
echo
echo ┌┬────────────────────────────────────┬┐
echo ││ Usage: INSTALL [Windows Directory] ││
echo └┴────────────────────────────────────┴┘
echo Example: INSTALL C:\WINDOWS
goto DONE
:DO_IT
cls
echo ┌────────────────────────────────┐
echo │** MACH32 Windows 3.1 Drivers **│
echo │************ Build 50 **********│
echo └────────────────────────────────┘
echo
echo This batch file will conveniently extract
echo the MACH32 Windows 3.1 drivers to
if (NET)==(%2) goto NETW
if (net)==(%2) goto NETW
echo your Windows system directory.
goto NEXT
:NETW
echo your Personal Network Windows Directory.
:NEXT
echo ┌─────────────────────────────────────────┐
echo │ If you are prompted to overwrite a file │
echo │ press Y for YES │
echo └─────────────────────────────────────────┘
echo
echo Press any key to continue the installation
echo or CONTROL-C to abort.
echo
pause >nul
cls
echo ┌────────────────────────────────┐
echo │** MACH32 Windows 3.1 Drivers **│
echo │************ Build 50 **********│
echo └────────────────────────────────┘
echo
echo Decompressing . . .
if (NET)==(%2) goto NETWORK
if (net)==(%2) goto NETWORK
windrvrs /e%1\SYSTEM
if errorlevel == 0 goto NEXT0
goto ERROR
:NEXT0
wingsdrv /e%1/SYSTEM
if errorlevel == 0 goto NEXT1
goto ERROR
:NEXT1
winpanel /e%1
if errorlevel ==0 goto OK
goto ERROR
:NETWORK
windrvrs /e%1
if errorlevel == 0 goto NEXTT
goto ERROR
:NEXTT
wingsdrv /e%1
if errorlevel == 0 goto NEXTT1
goto ERROR
:NEXTT1
winpanel /e%1
if errorlevel == 0 goto OK
goto ERROR
:OK
echo
pause
cls
echo ┌────────────────────────────────┐
echo │** MACH32 Windows 3.1 Drivers **│
echo │************ Build 50 **********│
echo └────────────────────────────────┘
echo ────────────────────
echo ╒══════════════════════════╕
echo │ Installation successful! │
echo ╘══════════════════════════╛
echo
echo The first step of the Windows 3.1 drivers is now complete.
echo The next step is to tell Windows to use these drivers.
echo Please read the README.1ST file for further instructions.
goto DONE
:ERROR
cls
echo ┌────────────────────────────────┐
echo │** MACH32 Windows 3.1 Drivers **│
echo │************ Build 50 **********│
echo └────────────────────────────────┘
echo ────────────────────
echo ╒═════════════════════╕
echo │ Installation Failed │
echo ╘═════════════════════╛
echo
echo An error has been reported decompressing the Windows drivers. This may
echo be due to problems accessing the specified directory, low free disk
echo space, or the archive is corrupt. First, ensure the path you specified
echo is correct. Second, run the DOS CHKDSK utility on your hard drive. If
echo CHKDSK reports errors, correct the errors before continuing. Also, make
echo certain you have at least 4 Meg of free disk space available.
echo
echo If you continue to have problems, you may wish to try manually
echo installing the drivers or contact ATI Customer Support. Manual driver
echo installation instructions are in README.1ST.
:DONE
echo
echo ATI Customer Support: (416) 756-0711 9am-5:30pm
echo FAX: (416) 756-0720
echo Compuserve: GO ATITECH